<template>
	<view>
		<navbar title="服务商招募" :back="true" color="#fff" leftIconColor="#fff"></navbar>
		<view style="position: relative;">
			<image :src="img" mode="widthFix" :show-menu-by-longpress="true" style="width: 100%;display: block;" @longtap="previewImage"></image>
		  <!--  <view style="position: absolute;top: 45%;left: 43%;">
				<image :src="ewm" mode="widthFix" show-menu-by-longpress="true" style="width: 100rpx;height: 100rpx;" @longtap="previewImage"></image>
			</view> -->
		</view>
	</view>
</template>

<script>
	import {
		getConfig,
		getGroupValue
	} from "@/api/public.js"
	import navbar from "@/components/baseNavbar.vue"
	export default{
		components:{
			navbar
		},
		data(){
			return{
				img:'',
				ewm:''
			}
		},
		onLoad() {
			getConfig('server_shop_orger').then(res=>{
				this.img = res.data.value
			})
			getConfig('server_shop_qrcode').then(res=>{
				this.ewm = res.data.value
			})
		},
		methods:{
			previewImage(){
				 uni.previewImage({
				            // 需要预览的图片链接列表。若无需预览，可以注释urls
				            urls:[],
				            // 为当前显示图片的链接/索引值
				            current:this.img,
				            // 图片指示器样式	
				            indicator:'default',
				            // 是否可循环预览
				            loop:false,
				            // 长按图片显示操作菜单，如不填默认为保存相册
							// longPressActions:{
							// 	itemList:[this.l('发送给朋友'),this.l]
							// },
							success: res => {
								console.log('previewImage res', res);
								

							}, 
							fail: err => {
								console.log('previewImage err', err);
							}
						});

			}
		}
	}
</script>

<style>
</style>